<div class="content-wrapper">
    <section class="content-header">
        <?php echo $this->partial('layout/breadcrumb'); ?>
        <h1 class="pull-right">
            <?php echo $this->HelpUrl('userIntegralType'); ?>
        </h1>
    </section>

    <section class="content">
        <?php echo $this->partial('layout/messages'); ?>

        <div class="row">
            <div class="col-xs-12">
                <div class="box shop-box">

                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <thead>
                            <tr class="shop-bg-thead">
                                <th><?php echo $this->translate('积分类型名称'); ?></th>
                                <th width="20%"><?php echo $this->translate('初始积分'); ?></th>
                                <th width="20%"><?php echo $this->translate('每100积分可抵现金(基础货币)数'); ?></th>
                                <th width="15%"><?php echo $this->translate('操作'); ?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if($this->integralTypeList) foreach ($this->integralTypeList as $value) { ?>
                                <tr>
                                    <td><?php echo $this->escapeHtml($value->getIntegralTypeName()); ?></td>
                                    <td><?php echo $this->escapeHtml($value->getIntegralDefaultNum()); ?></td>
                                    <td><?php echo $this->escapeHtml($value->getIntegralCurrencyCon()); ?></td>
                                    <td>
                                        <a href="<?php echo $this->url('user-integral',
                                            ['action'=>'editIntegralType', 'id'=>$value->getIntegralTypeId()]); ?>"
                                           class="btn btn-xs btn-success"><i class="fa fa-pencil"></i> <?php echo $this->translate('编辑'); ?></a>
                                    </td>
                                </tr>
                            <?php } ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

    </section>
</div>